package com.github.thinwonton.spring.source.analysis;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 测试多类型
 */
public class MultipletypeBootstrap {
    public static void main(String[] args) throws InterruptedException {
        System.out.println("----------------start------------");
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext
                ("classpath:spring/applicationContext-multiple.xml");
        Person person = applicationContext.getBean(Person.class);
        person.say();
        Thread.sleep(5000);
        System.out.println("-----------------end-----------");
    }
}
